import request from '@/utils/request'

// 查询服务规格列表
export function listPage(query) {
  return request({
    url: '/servicemanage/page/list',
    method: 'get',
    params: query
  })
}

// 查询服务规格详细
export function getPage(id) {
  return request({
    url: '/servicemanage/page/' + id,
    method: 'get'
  })
}

// 新增服务规格
export function addPage(data) {
  return request({
    url: '/servicemanage/page',
    method: 'post',
    data: data
  })
}

// 修改服务规格
export function updatePage(data) {
  return request({
    url: '/servicemanage/page',
    method: 'put',
    data: data
  })
}

// 删除服务规格
export function delPage(id) {
  return request({
    url: '/servicemanage/page/' + id,
    method: 'delete'
  })
}

// 根据pageId查询服务规格
export function selectServicePageListByPageId(pageId) {
  return request({
    url: '/servicemanage/page/selectServicePageList1/' + pageId,
    method: 'get'
  })
}


